.class public Lcom/instagram/h/a/c;
.super Ljava/lang/Object;
.source "InsightsUtil.java"


# direct methods
.method private static a(Lcom/instagram/android/model/b/g;)Ljava/lang/String;
    .locals 4
    .parameter

    .prologue
    .line 117
    sget-object v0, Lcom/instagram/h/a/d;->a:[I

    invoke-virtual {p0}, Lcom/instagram/android/model/b/g;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    .line 129
    const-string v0, "InsightsUtil"

    const-string v1, "Follow status: %s not handled. Using \'unknown\' instead."

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    aput-object p0, v2, v3

    invoke-static {v0, v1, v2}, Lcom/facebook/e/a/a;->c(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V

    .line 130
    const-string v0, "unknown"

    :goto_0
    return-object v0

    .line 119
    :pswitch_0
    const-string v0, "unknown"

    goto :goto_0

    .line 121
    :pswitch_1
    const-string v0, "fetching"

    goto :goto_0

    .line 123
    :pswitch_2
    const-string v0, "not_following"

    goto :goto_0

    .line 125
    :pswitch_3
    const-string v0, "following"

    goto :goto_0

    .line 127
    :pswitch_4
    const-string v0, "requested"

    goto :goto_0

    .line 117
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
    .end packed-switch
.end method

.method public static a(Ljava/lang/String;Lcom/instagram/j/l;IJLcom/instagram/b/d;)V
    .locals 1
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 64
    invoke-virtual {p1}, Lcom/instagram/j/l;->Y()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 65
    invoke-static/range {p0 .. p5}, Lcom/instagram/h/a/e;->a(Ljava/lang/String;Lcom/instagram/j/l;IJLcom/instagram/b/d;)V

    .line 69
    :cond_0
    :goto_0
    return-void

    .line 66
    :cond_1
    invoke-virtual {p1}, Lcom/instagram/j/l;->ad()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 67
    invoke-static/range {p0 .. p5}, Lcom/instagram/h/a/c;->b(Ljava/lang/String;Lcom/instagram/j/l;IJLcom/instagram/b/d;)V

    goto :goto_0
.end method

.method public static a(Ljava/lang/String;Lcom/instagram/j/l;ILcom/instagram/b/d;)V
    .locals 1
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 40
    invoke-virtual {p1}, Lcom/instagram/j/l;->Y()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 41
    invoke-static {p0, p1, p3}, Lcom/instagram/h/a/e;->a(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/b/d;)V

    .line 45
    :cond_0
    :goto_0
    return-void

    .line 42
    :cond_1
    invoke-virtual {p1}, Lcom/instagram/j/l;->ad()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 43
    invoke-static {p0, p1, p2, p3}, Lcom/instagram/h/a/c;->b(Ljava/lang/String;Lcom/instagram/j/l;ILcom/instagram/b/d;)V

    goto :goto_0
.end method

.method public static a(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/b/d;)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 29
    invoke-virtual {p1}, Lcom/instagram/j/l;->Y()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 30
    invoke-static {p0, p1, p2}, Lcom/instagram/h/a/e;->a(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/b/d;)V

    .line 34
    :cond_0
    :goto_0
    return-void

    .line 31
    :cond_1
    invoke-virtual {p1}, Lcom/instagram/j/l;->ad()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 32
    invoke-static {p0, p1, p2}, Lcom/instagram/h/a/c;->c(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/b/d;)V

    goto :goto_0
.end method

.method private static b(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/b/d;)Lcom/instagram/b/b;
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 75
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "instagram_organic_"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 76
    new-instance v1, Lcom/instagram/b/b;

    invoke-direct {v1, v0, p2}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v0, "m_pk"

    invoke-virtual {p1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "a_pk"

    invoke-virtual {p1}, Lcom/instagram/j/l;->b()Lcom/instagram/android/model/b/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "m_ts"

    invoke-virtual {p1}, Lcom/instagram/j/l;->j()Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    invoke-virtual {v0, v1, v2, v3}, Lcom/instagram/b/b;->a(Ljava/lang/String;J)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "m_t"

    invoke-virtual {p1}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/model/a/a;->a()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "tracking_token"

    invoke-virtual {p1}, Lcom/instagram/j/l;->af()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "source_of_action"

    invoke-interface {p2}, Lcom/instagram/b/d;->d_()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "follow_status"

    invoke-virtual {p1}, Lcom/instagram/j/l;->b()Lcom/instagram/android/model/b/e;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/android/model/b/e;->B()Lcom/instagram/android/model/b/g;

    move-result-object v2

    invoke-static {v2}, Lcom/instagram/h/a/c;->a(Lcom/instagram/android/model/b/g;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v0

    return-object v0
.end method

.method private static b(Ljava/lang/String;Lcom/instagram/j/l;IJLcom/instagram/b/d;)V
    .locals 2
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 110
    invoke-static {p0, p1, p5}, Lcom/instagram/h/a/c;->b(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/b/d;)Lcom/instagram/b/b;

    move-result-object v0

    .line 111
    const-string v1, "m_ix"

    invoke-virtual {v0, v1, p2}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    .line 112
    const-string v1, "tts"

    invoke-virtual {v0, v1, p3, p4}, Lcom/instagram/b/b;->a(Ljava/lang/String;J)Lcom/instagram/b/b;

    .line 113
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    invoke-interface {v1, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 114
    return-void
.end method

.method private static b(Ljava/lang/String;Lcom/instagram/j/l;ILcom/instagram/b/d;)V
    .locals 2
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 99
    invoke-static {p0, p1, p3}, Lcom/instagram/h/a/c;->b(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/b/d;)Lcom/instagram/b/b;

    move-result-object v0

    .line 100
    const-string v1, "m_ix"

    invoke-virtual {v0, v1, p2}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    .line 101
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    invoke-interface {v1, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 102
    return-void
.end method

.method private static c(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/b/d;)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 90
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    invoke-static {p0, p1, p2}, Lcom/instagram/h/a/c;->b(Ljava/lang/String;Lcom/instagram/j/l;Lcom/instagram/b/d;)Lcom/instagram/b/b;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 91
    return-void
.end method
